#include <iostream>
#include <memory>
#include "Person.hpp"
#include "SleepState.hpp"
#include "WakeUpState.hpp"

using namespace std;

int main(int argc, char const *argv[])
{
    shared_ptr<Person> p = make_shared<Person>("张三");
    shared_ptr<SleepState> sleepState = make_shared<SleepState>();
    shared_ptr<WakeUpState> wakeUpState = make_shared<WakeUpState>();
    p.get()->setState(sleepState);
    p.get()->setState(wakeUpState);
    return 0;
}
